package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.OmcCMFood;
import com.csun.cmny.provider.model.domain.OmcCMFoodInspection;
import com.csun.cmny.provider.model.dto.OmcCMFoodDto;
import com.csun.cmny.provider.model.dto.OmcCMFoodInspectionDto;

import java.util.List;

public interface OmcCMFoodService extends IService<OmcCMFood> {

    //保存食物信息
    Integer save(OmcCMFoodDto omcCMFoodDto, LoginAuthDto loginAuthDto);

    //查询食物信息
    List<OmcCMFood> queryFood(OmcCMFoodDto omcCMFoodDto);

    //添加食品检查记录
    Integer saveInspeciton(OmcCMFoodInspectionDto omcCMFoodInspectionDto, LoginAuthDto loginAuthDto);

    //查询食品检查记录
    List<OmcCMFoodInspection> queryInspection(OmcCMFoodInspectionDto omcCMFoodInspectionDto);
}
